﻿@model websitev2.Models.SiteContent
<div id="main-wrap">
    @if (!Request.IsAuthenticated)
    {
        <div id="hero-wrap">
            <div id="hero" class="profile tour section group">
                <h2 class="medium">
                    Get Started with StartStop</h2>
                <h3>
                    Learn how StartStop works in 30 seconds</h3>
                <a href="/account/register/" class="tour-sign-up">Sign up for free!</a>
            </div>
            <!-- /hero -->
        </div>
        <!-- /hero-wrap -->
    }
    <div id="main" class="group">
        <div id="content" class="group">
            <div id="bc">
                You are here: <a href="/">Home</a> <a href="#">News</a> <a href="#">@Model.Title</a>
            </div>
            <h1>@Model.Title</h1>
            <h5>@Model.CreatedOn</h5>
            <p>
                @Html.Raw(Model.MainContent)
            </p>
        </div>
        <div id="sidebar">
            <div class="sideblock">
                <h4>
                    Other Recent News</h4>
            </div>
            @if (ViewBag.MoreArticles != null)
            {
                foreach (var sContent in ViewBag.MoreArticles)
                {
                <div class="sideblock">
                    <h5>
                        @sContent.Title</h5>
                    @sContent.ShortContent
                    <p class="more">@Html.ActionLink("Read more", "News", "Articles", new { ID = sContent.ContentID }, null)</p>
                </div>
                }
            }
        </div>
        <!-- / sidebad-->
    </div>
    <!-- /Main Group -->
    <!-- / Main wrap -->
